l = ['green', 'purple', 'black', 'red', 'blue']
a = 0
l[2]='yellow'

while a < len(l):
    print(l[a])
    a+=1